<?php

namespace app\common\validate;

use app\common\validate\Base;
class Operate extends Base
{

    protected $rule = [
        'target|目标用户' => 'require|checkTargetMember',
        'coin_id|货币类型' => 'require|checkCoinId',
        'convert_coin_id|目标货币' => 'require|checkCoinId',
        'amount|金额' => 'require|number|gt:0',
        'bank_name|银行名称' => 'require',
        'bank_card|银行卡号' => 'require',
        'bank_address|银行地址' => 'require',
        'owner|开户人' => 'require',
        'operate_time|操作时间' => 'require',
        'captcha|验证码'=>'require|captcha'

    ];

    protected $message = [

    ];

    protected $scene = [
        // 会员提交充值申请
        'home_charge' => ['coin_id','amount','bank_name','bank_card','owner','operate_time','bank_address','captcha'],
        // 会员提交提现申请
        'home_withdraw' => ['coin_id','amount','bank_card','captcha'],
        // 会员转账
        'home_transfer' => ['target','amount','coin_id','captcha'],
        // 货币转换
        'home_convert' => ['coin_id','amount','convert_coin_id','captcha'],
    ];


}